package main.java.common.constants;

import org.springframework.util.ClassUtils;

public class Constants {
	//获取系统的分隔符 ，区分是Linux还是windows
	public static final String SF_FILE_SEPARATOR = System.getProperty("file.separator");
	public static final String SF_LINE_SEPARATOR = System.getProperty("line.separator");
	public static final String SF_PATH_SEPARATOR = System.getProperty("path.separator");
	//支付二维码 存放地址 自定义
	public static final String QRCODE_PATH = ClassUtils.getDefaultClassLoader().getResource("static").getPath() + SF_FILE_SEPARATOR + "qrcode";
	//微信对账单 字段说明
	public static final String WEIXIN_BILL = "tradetime, ghid, mchid, submch, deviceid, wxorder, bzorder, openid, tradetype, tradestatus, bank, currency, totalmoney, redpacketmoney, wxrefund, bzrefund, refundmoney, redpacketrefund, refundtype, refundstatus, productname, bzdatapacket, fee, rate";
	
	public static final String PATH_BASE_INFO_XML = SF_FILE_SEPARATOR + "WEB-INF" + SF_FILE_SEPARATOR + "xmlConfig" + SF_FILE_SEPARATOR;
	
	public static final String CURRENT_USER = "UserInfo";
	
	public static final String SUCCESS = "success";
	
	public static final String FAIL = "fail";
}
